import request from '@/utils/request'

// 查询导览信息列表
export function listTours(query) {
  return request({
    url: '/baseplatform/tours/list',
    method: 'get',
    params: query
  })
}

// 查询导览信息详细
export function getTours(guideId) {
  return request({
    url: '/baseplatform/tours/' + guideId,
    method: 'get'
  })
}

// 新增导览信息
export function addTours(data) {
  return request({
    url: '/baseplatform/tours',
    method: 'post',
    data: data
  })
}

// 修改导览信息
export function updateTours(data) {
  return request({
    url: '/baseplatform/tours',
    method: 'put',
    data: data
  })
}

// 删除导览信息
export function delTours(guideId) {
  return request({
    url: '/baseplatform/tours/' + guideId,
    method: 'delete'
  })
}
